package com.atguigu.classroom.live.service.impl;

import com.atguigu.classroom.live.service.LiveCourseConfigService;
import com.atguigu.classroom.live.service.LiveCourseService;
import com.atguigu.classroom.model.live.LiveCourse;
import com.atguigu.classroom.vo.live.LiveCourseVo;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.Date;
import java.util.List;

@SpringBootTest
public class test {
    @Autowired
    private LiveCourseService liveCourseService;
    @Test
    void test(){
        List<LiveCourseVo> latelyList = liveCourseService.findLatelyList();
        System.out.println(latelyList.size());
        for (LiveCourseVo liveCourseVo:latelyList){
            System.out.println(liveCourseVo.toString());
        }
    }
    @Autowired
    private LiveCourseConfigService liveCourseConfigService;
    @Test
    void test1(){
        liveCourseConfigService.getLiveCourseConfigByLiveCourseId(2L);
    }
}
